<?php
/* http://localhost/expatcircles/wwwroot/test/m:test/act:test1/xiehui:asdfasdf  */
require_once ($C->INCPATH . 'classes/class_pdo.php');
require_once ($C->INCPATH . 'classes/class_xml2array.php');
require_once ($C->INCPATH . 'classes/class_array2xml.php');

$this->load_langfile('home/home.php');

$actionpath = dirname ( __file__ ) . '/../modules/';
$path = $actionpath . 'test/test.php';
if (! empty ( $path ) && file_exists ( $path ))
	require_once ($path);

$D->request = (object)$_REQUEST;
$class = $this->param('m');
$method = $this->param('act');

//反射调用指定目录中封装类及方法
$refClass = new ReflectionClass($class);
$reflectionMethod = $refClass->getMethod($method);
$pluginInstance = $refClass->newInstance($con);
$D->str = $reflectionMethod->invoke($pluginInstance, $D->request);

switch ($method) {
	case 'test1' :
		{
            $this->load_template ('test.php');
			break;
		}
 }
?>